BINARY_NAME=logSlicer

default:
	mkdir -p dist/{bin,config,log}
	cp config/* dist/config
	CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags '-w -s' -o dist/ cmd/slicer/main.go
	CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags '-w -s' -o dist/ cmd/slicer/main.go

clean:
	rm -rf dist